package com.neusoft.my12306.controller;


import com.neusoft.my12306.common.res.CommonResult;
import com.neusoft.my12306.service.ITrainlineService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author 段静迪
 * @since 2023-07-07
 */
@RestController
@RequestMapping("/t")
@CrossOrigin
public class TrainlineController {
    @Autowired
    ITrainlineService  trainlineService;

    @GetMapping("/q/lws")
    public CommonResult  loadWithSchedules(){
       return    trainlineService.loadWithSchedules();
    }
}
